import {Component} from '@angular/core';
import {ViewController} from 'ionic-angular';

import {services} from '../../../providers/service'

@Component({
    selector: 'page-product',
    templateUrl: 'product.html'
})
export class conProductPage {
    //接受从服务传递过来的产品信息
    products = this.services.productList02;

    constructor(public viewCtrl: ViewController,
                public services: services) {
        console.info("选择产品弹窗：constructor,",this.products);
    }

    //返回产品信息页面
    dismiss() {
        this.viewCtrl.dismiss();
    }

    //选择产品
    addToPro(pdt) {
        console.info("点击的产品信息：addToPro",pdt);
        this.viewCtrl.dismiss(pdt);
    }
}



